replace relpath with normpath and get rid of empty message in exception