Simplify path resolve check for normal files, this also fixes issue with relative including and include_path checking