introduce method to calc path relative to base_dir