Added functions to convert relative path to absoluthe