Use 'printf' to produce prettier output;
Use shell expansion to strip trailing slash.