Resolve relative path based on the current directory