Fixed the DeprecationWarning rased form line 3083

The previous patch changed the lookup path.(always include pwd)
This one should be fine.
ps: The depr() was calld on line 3095.