cd to the dir where the file is before moving

Otherwise, it is not possible to operate on a plugin or other repository
than the app itself