check path first

Revert this commit - https://github.com/cyberdelia/django-pipeline/commit/c03911b4c89f70988036b895533bd5ec19c1bdc3

`path` should be check at the very beginning.