Use main directory as the working directory