Check that current_path exists before stopping

Otherwise `within current_path` throws an error an exits.