added check for nil or empty or / path to absoluteDirectoryForPath