More code for figuring out if staged directory exists