Changes to allow application to run in a subdirectory.