Resolve system path properly