Fix main folder creation for unix-based