Refactor `asset_path`, `file_path` and `relative_path` methods