Better local filepath handling: now works with relative and absolute paths