The function relies on Erlang's filename:abs function, so we're basically testing Erlang here. There is no straightforward way to obtain current directory by other means that'll work seamlessly on all OSes. So we'll better not check the return value.