Use realpath to remove possible relative paths