fix to get current file dir