Corrected a bug where the device profile system directory waw not correctly defined