Fixed target verification

Fixes two bugs introduced with ce4b3c77889f924f3b24ad991028a81a0bdd79bf:

- Relative target location is not verified with `dirname(__FILE__)` in front
- Target location is not properly check for leading slash