Strip surrounding spaces from directory name in \s

These two things should work equally:

    \s../rcm
    \s ../rcm

Previously only the first worked. Now both do.