fix #33 (receiving full path instead of basename)