Corrected a bug where the default profile and device profile directories were not correctly defined