Somehow this change to hdfs_getpath and file.path got deleted from the commit history(??git st). Adding it back in..