Make it work with in_current_dir