Split the 'longdir' test into its own script, and make it work without