Change the path to the root directory before attempting to open