ignore trailing slashes for comparison of source

Signed-off-by: Steven Armstrong <steven@icarus.ethz.ch>