Refactored method to create site path when missing