added the verbose argument
correctly ignore .o and .so files