Add support for running in subdirectories.