Treat leading slash as relative to the current dir for consistency with .gitignore

Signed-off-by: Anton Kovalyov <anton@kovalyov.net>