fixing os.path invocation