Fix build to behave the same on Linux as on OS X

This was causing an extra subdirectory to be created when run on Linux