Use consistent spacing
Use $() consistently; fail if dirname or cd fails
Fix example community string