Set working directory to resource directory