Fixed the instans-script to accept paths with spaces.