getFilePath: Check if file directory is a full or relative path