Change dir and back in compile