When creating an extension, first create the rest extension directory if it doesn't already exist
Bug fix: used has_value? where I should have used has_key?