Fixing revert for files outside of current directory scope