Resolve relative file path to absolute filepath [Public domain]