remove trailing whitespace and ignore nbproject