Now using os.path.dirname to get current dir path