Fixed file renaming problem

Fixed a problem that caused an error when the main plugin file and
folder was renamed.