Add support for running in a subdirectory