Stops warnings about accessing outside dir