fix absolute path checking