Adding option to location fields to specify required paths, fixes #51