fix constantize and disallow spaces from file and directory names