Clean up freenx scripts to work with both local and remote installations. Fixes #82