Fix bug that runs script from wrong location