Added method to get the full path minus the file extension.