added a check for constraint filenames to see if the path give is a full path