Fix incorrect native library path being used on some platforms.
Fix issue where controller/touchscreen profiles were created as
directories instead of files.